package com.wnxy.carl.carlorderassembly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.carl.carlorderassembly.entity.ShoppingCart;
import com.wnxy.carl.dto.PageDTO;
import com.wnxy.carl.dto.ShoppingDTO;
import com.wnxy.carl.param.IncreaseShopingParam;
import com.wnxy.carl.param.PageParam;

/**
 * <p>
 * 购物车表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-11-12
 */
public interface IShoppingCartService extends IService<ShoppingCart> {
    // 查看用户购物车 PageDTO<ShoppingDTO>
    public PageDTO<ShoppingDTO> seeShoppingCart(PageParam<Integer> pageParam);
    // 修改购物车信息 ShoppingDTO
    public ShoppingDTO amendShoppingCart(Integer shoppingCartId, Integer number);
    // 删除购物商品 Boolean
    public void cancelShoping(Integer shoppingCartId);
    // 添加购物车商品 ShoppingDTO
    public ShoppingDTO increaseShoping(IncreaseShopingParam shopingParam);

}
